package org.example.services;

import org.example.domain.Book;
import org.example.domain.Question;
import org.example.domain.response.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

public interface BookService {

    ResponseResult deleteBook(Integer id);
    ResponseResult saveBook(Book book);
    ResponseResult updateBook(Book book);
    ResponseResult getBook(Integer bookId);
    ResponseResult getPage(int currentPage, int pageSize);
    ResponseResult getTypeByPage(String type,int pageSize,int currentPage);
    ResponseResult getNameByPage(String name,int pageSize,int currentPage);



    ResponseResult uploadBookCover(MultipartFile file, int bookId);

    ResponseResult getAllSlideShow();

    ResponseResult saveSlideShow(MultipartFile file, int bookId);

    ResponseResult deleteSlideShow(int showId);
}
